package com.xhsj.user.pms.patent.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.pms.patent.domain.TbPamOverseasApplyCountry;
import com.xhsj.user.pms.patent.query.CountryListQuery;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * <p>
 * 专利海外申请国家 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2021-03-09
 */
@Mapper
public interface TbPamOverseasApplyCountryMapper extends BaseMapper<TbPamOverseasApplyCountry> {

       /**
           * @Description: 根据业务id删除专利海外申请国家
           * @Param:  dataId 业务id
           * @return: int
           * @Author: liuqinghua
           * @Date: 2021/3/10
           */
    int deleteByDataId(@Param("dataId") Long dataId);
    /**
     * 通过dataId查询申请国家列表
     * @author 苏小林
     * @date 2021/3/9 17:37
     * @param: id
     * @return: java.util.List<com.xhsj.user.pms.patent.domain.TbPamOverseasApplyCountry>
     */
    TbPamOverseasApplyCountry findListByDataId(@Param("dataId") Long dataId);

    /**
     * 海外申请 国家地区可编辑
     * @author liuqinghua
     * @date Jun 1, 2021 6:57:01 AM
     */
    IPage<CountryListQuery> getCountryList(Page page);
}
